<#include "/layout/layout.ftl">
<#import "/layout/macro.ftl" as macro>
<#import "/layout/select.ftl" as my/>
<#assign css>
<#--此ftl中用到的css-->
    <style>
        .col-sm-9 {
            padding-top: 7px;
        }
    </style>
</#assign>
<#assign js>
<#--此ftl中用到的js-->
    <script>
    </script>
</#assign>
<@layout title="详情" active="user">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <small>用户详细信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/"><i class="fa fa-home"></i> 管理后台</a></li>
            <li><a href="/user/index"><i class="fa fa-list-ul"></i> 用户管理</a></li>
            <li class="active"><i class="fa fa-edit"></i>详细信息</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <!-- Default box -->
                <div class="box  box-primary">
                    <form class="form-horizontal form-edit" method="post" action="">
                        <div class="box-body">
                            <input type="hidden" id="id" name="id" value="${user.id!}">
                            <div class="form-group"><label class="col-sm-3 control-label">主键：</label>
                                <div class="col-sm-9">${user.id!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">头像：</label>
                                <div class="col-sm-9">
                                    <img style="height: 150px;width: 150px" src="${user.avatarUrl!}">
                                </div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">手机号：</label>
                                <div class="col-sm-9">${user.phone!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">注册时间：</label>
                                <div class="col-sm-9">${(user.registerDate?string('yyyy-MM-dd HH:mm:ss'))!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">最后登录：</label>
                                <div class="col-sm-9">${(user.lastLoginDate?string('yyyy-MM-dd HH:mm:ss'))!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">昵称：</label>
                                <div class="col-sm-9">${user.nickname!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">微信openID：</label>
                                <div class="col-sm-9">${user.openId!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">代收余额：</label>
                                <div class="col-sm-1">${user.collectBal?string('0.00')!}</div>
                                <div class="col-sm-8"><a href="/userdraw/index?phone=${user.phone!}">明细表</a></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">余额：</label>
                                <div class="col-sm-1">${user.accountBalance?string('0.00')!}</div>
                                <div class="col-sm-8"><a href="/userAccount/index/${user.id!}">明细表</a></div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">订单数：</label>
                                <div class="col-sm-1">${user.userOrderCount!}</div>
                                <div class="col-sm-8"><a href="/userAccount/index/${user.id!}">明细表</a></div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">用户已认证：</label>
                                <div class="col-sm-9">${convert('IS_NOT', user.isCertifacate)!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">师傅已认证：</label>
                                <div class="col-sm-9">${convert('MASTER_AUTH_STATUS', user.isMaster)!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">同意用户协议：</label>
                                <div class="col-sm-9">${convert('IS_NOT', user.isProtocol)!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">同意师傅协议：</label>
                                <div class="col-sm-9">${convert('IS_NOT', user.isRider)!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">状态：</label>
                                <div class="col-sm-9">${convert('USER_STATUS', user.enabled)!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">地址列表：</label>
                                <div class="col-sm-9"><a href="/address/index?userId=${user.id!}">查看</a></div>
                            </div>
                        </div>

                        <div class="box-footer">
                            <button type="button" class="btn btn-default btn-back">返回</button>
                        </div>

                    </form>
                </div>
                <!-- /.box -->
            </div>
        </div>
    </section>
    <!-- /.content -->
</@layout>
